package com.steak.spring.cyclicdependence.prototype;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Test {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(UserService.class, RoleService.class, PostService.class);
        UserService userService = context.getBean("userService", UserService.class);
        userService.ok();
        System.out.println(userService);
    }
}
